// 退出登录

// const express = require('express');
// const app = express();
const Http = require('../util/request');

module.exports = (query, request) => {
    // console.log(query.cookies)
    Http(
        'POST', `https://music.163.com/weapi/logout`, {},
        {crypto: 'weapi', ua: 'pc', cookie: query.cookies, proxy: query.proxy}
    ).then(res => {
        request.append('Set-Cookie', res.cookie)
        request.json(res)
    }).catch( err => {
        request.json(err)
    })
};
